package com.ruoyi.common.utils;

import cn.hutool.core.util.IdUtil;

public class SnowflakeUtil {

    public static String nextStringId(){
        cn.hutool.core.lang.Snowflake snowflake = IdUtil.getSnowflake(1,1);
        long id = snowflake.nextId();
        return String.valueOf(id);
    }

    public static Long nextId(){
        cn.hutool.core.lang.Snowflake snowflake = IdUtil.getSnowflake(1,1);
        long id = snowflake.nextId();
        return id;
    }

}
